#include "Mouse.h"
#include <windows.h>

int Mouse::x;
int Mouse::y;
bool Mouse::left;
bool Mouse::right;
bool Mouse::middle;
bool Mouse::x1;
bool Mouse::x2;

int Mouse::X(void)
{
	return x;
}
void Mouse::SetX(int x)
{
	Mouse::x = x;
}

int Mouse::Y(void)
{
	return y;
}
void Mouse::SetY(int y)
{
	Mouse::y = y;
}
	
bool Mouse::Left(void)
{
	return left;
}
void Mouse::SetLeft(bool left)
{
	Mouse::left = left;
}

bool Mouse::Right(void)
{
	return right;
}
void Mouse::SetRight(bool right)
{
	Mouse::right = right;
}

bool Mouse::Middle(void)
{
	return middle;
}
void Mouse::SetMiddle(bool middle)
{
	Mouse::middle = middle;
}

bool Mouse::X1(void)
{
	return x1;
}
void Mouse::SetX1(bool x1)
{
	Mouse::x1 = x1;
}

bool Mouse::X2(void)
{
	return x2;
}
void Mouse::SetX2(bool x2)
{
	Mouse::x2 = x2;
}

void Mouse::Reset(void)
{
	x = 0;
	y = 0;
	left = false;
	right = false;
	middle = false;
	x1 = false;
	x2 = false;
}

void Mouse::SetPosition(int x, int y)
{
	SetCursorPos(x, y);
}